// import 'video.js/dist/video-js.min.css'
// import videojs from 'video.js'
// import 'videojs-contrib-hls'
// var player = videojs('example-video',()=>{
//     console.log(this)
//     this.play()
// })
// console.log(player)
// // player.play()
// window.addEventListener('touchstart',()=>{
//     player.play()
// },false)
// import chimee from 'chimee'
// new chimee({
//     wrapper:'#video-wrapper',
//     src:'https://wxapp.mystlabs.net/h5gift/img/xiwu.mp4',
//     autoplay: true,
//     controls: true,
//     playsInline: true,
//     preload: true,
//     x5VideoPlayerFullscreen: true,
//     x5VideoOrientation: true,
//     xWebkitAirplay: true,
//     muted: true
// })
import 'dplayer/dist/DPlayer.min.css';
import DPlayer from 'dplayer'
let player = new DPlayer({
    container: document.getElementById('video-wrapper'),
    video: {
        url: 'https://wxapp.mystlabs.net/h5gift/img/xiwu.mp4',
    },
    autoplay:true,
    live:true,
    loop:true,
    preload:'auto'
});
document.addEventListener('touchstart', function(){
    player.play()
}, false);
player.on('play',()=>{
    console.log('play')
})
